<style scoped>
    .mian_top{
        width: 100%;
        min-height: 295px;
        background-color:#fff;
        border-radius:3px;
    }

    .mian_top a{
        color:#333;
        font-weight:500;
    }
    .mian_right{
        margin-left:12px;
        min-height:510px;
        background-color:#fff;
        border-radius:3px;
    }
    .mian_Down{
        margin-top:12px;
        width: 100%;
        min-height:200px;
        background-color:#f60;
        border-radius:3px;
    }

</style>

<template>
    <Row type="flex">
        <i-col span="15" style="min-height:500px">
            <div class="mian_top">
                 <Cygj-nav></Cygj-nav>
                <!-- <div class="cygj_nav">
                    <Icon size="18" type="navicon-round" class="icon_C1"></Icon>
                    &nbsp;常用功能
                    <ul class="btn_C2">
                        <li><a href="#" title=""><Icon size="20" type="android-remove"></Icon></a></li>
                        <li><a href="#" title=""><Icon size="20" type="android-close"></Icon></a></li>
                    </ul>
                </div> -->
                <!-- <div class="cygj_Down">
                    <ul class="cygj_ul">
                        <li><a href="" title=""><img src="../images/查询分析.png" height="70" width="70">查询分析</a></li>
                        <li><a href="" title=""><img src="../images/资产管理.png" height="70" width="70">资产管理</a></li>
                        <li><a href="" title=""><img src="../images/结算管理.png" height="70" width="70">结算管理</a></li>
                        <li><a href="" title=""><img src="../images/预算管理.png" height="70" width="70">预算管理</a></li>
                        <li><a href="" title=""><img src="../images/成本管理.png" height="70" width="70">成本管理</a></li>
                        <li><a href="" title=""><img src="../images/物流管理.png" height="70" width="70">物流管理</a></li>
                        <li><a href="" title=""><img src="../images/资本管理.png" height="70" width="70">资本管理</a></li>
                        <li><a href="" title=""><img src="../images/防窜管理.png" height="70" width="70">防窜管理</a></li>
                        <li><a href="" title=""><img src="../images/icon_more.png" height="70" width="70">添加更多</a></li>
                    </ul>
                </div> -->
            </div>
            <div class="mian_Down">
                <jgm-nav></jgm-nav>
                <i-table border :content="self" :columns="columns7" :data="data6"></i-table>
            </div>
        </i-col>
        <i-col span="9">
            <div class="mian_right">
                <Tb-nav></Tb-nav>
                <img src="../images/echart02.png" width="386">
            </div>
        </i-col>
    </Row>
</template>
<script>
    import CygjNav from './cygj_nav.vue'
    import jgmNav from './jgmyj_nav.vue'
    import TbNav from './tjtb_nav.vue'


    export default {
        components:{
            CygjNav,
            jgmNav,
            TbNav
        },
        methods:{
            show (index) {
                this.$Modal.info({
                    title: '用户信息',
                    content: `姓名：${this.data6[index].name}<br>年龄：${this.data6[index].age}<br>地址：${this.data6[index].address}`
                })
            },
            remove (index) {
                this.data6.splice(index, 1);
            }
        },
        data(){
            return{
                self: this,
                columns7: [
                    {
                        title: '姓名',
                        key: 'name',
                        render (row, column, index) {
                            return `<Icon type="person"></Icon> <strong>${row.name}</strong>`;
                        }
                    },
                    {
                        title: '年龄',
                        key: 'age'
                    },
                    {
                        title: '地址',
                        key: 'address'
                    },
                    {
                        title: '操作',
                        key: 'action',
                        width: 150,
                        align: 'center',
                        render (row, column, index) {
                            return `<i-button type="primary" size="small" @click="show(${index})">查看</i-button> <i-button type="error" size="small" @click="remove(${index})">删除</i-button>`;
                        }
                    }
                ],
                data6: [
                    {
                        name: '王小明',
                        age: 18,
                        address: '北京市朝阳区芍药居'
                    },
                    {
                        name: '张小刚',
                        age: 25,
                        address: '北京市海淀区西二旗'
                    },
                    {
                        name: '李小红',
                        age: 30,
                        address: '上海市浦东新区世纪大道'
                    }
                ]
            }
        }
    }
</script>
